package com.qf.day07;

import com.qf.day09.ISwimable;

public class Fish extends Animal implements ISwimable {

    public void swim(){
        System.out.println(super.getType() +"游泳");
    }

    @Override
    public String toString() {
        return "Fish{} " + super.toString();
    }

    public Fish() {
        super("鲫鱼",2,"男");
    }

    public Fish(String type, int age, String sex) {
        super(type, age, sex);
    }

    @Override
    public void doSwim() {
        System.out.println("游泳~~~~~");
    }
}
